Hide the VMX cpu feature from unmodified Guests.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 12 Oct 2005 08:27:28 +0000 (09:27 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 12 Oct 2005 08:27:28 +0000 (09:27 +0100)
Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
xen/arch/x86/vmx.c

index 28d996e4a5a98e21bf767e2f9c2de4fa8dbcfbbf..632a4e47b0210113167240b77a82956779f9330a 100644 (file)
@@ -471,6 +471,7 @@ static void vmx_vmexit_do_cpuid(unsigned long input, struct cpu_user_regs *regs)
 #endif
 
         /* Unsupportable for virtualised CPUs. */
+        clear_bit(X86_FEATURE_VMXE & 31, &ecx);
         clear_bit(X86_FEATURE_MWAIT & 31, &ecx);
     }